package team.knowers.qzh.qzhserver.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import team.knowers.qzh.qzhserver.dao.entity.CourseEvaluationDO;
import team.knowers.qzh.qzhserver.dto.req.AddEvaluationReqDTO;
import team.knowers.qzh.qzhserver.dto.req.EvaluationPageReqDTO;
import team.knowers.qzh.qzhserver.dto.resp.EvaluationPageRespDTO;

/**
 * 课程评价服务层
 *
 * @author xtg
 */
public interface CourseEvaluationService extends IService<CourseEvaluationDO> {
    /**
     * 添加一条评价
     */
    int addEvaluation(AddEvaluationReqDTO req);

    /**
     * 分页展示评价内容
     */
    IPage<EvaluationPageRespDTO> pageEvaluation(EvaluationPageReqDTO requestParam);

}
